/**
 * 延迟执行函数
 * @param {Number} duration - 间隔时间
 * @returns {Promise}
 */
export function delay(duration) {
  return new Promise(resolve => setTimeout(resolve, duration))
}
